// Version 1.0 for v4.0
// March 24, 1997
// MoreInfo ADF
// Written by SilverWARE
// info@silverware.com
// For support with this ADF file, contact SilverWARE

// Notes Application addition for MoreInfo* by SilverWARE
application "paperroll" called "Notes"
class "CardNote:MoreInfo2:SilverWARE" called "CardNote* by SilverWARE" of "Notes" contains
	{
	timestamp: datetime called "Date" default ""
	title: string called "Title"
	|MoreInfo2:SilverWARE|: entry called "MoreInfo Data" contains 
			{
			nameLinks: array called "Name Links" { entry called "Name Links" contains
				{ item: string called "Name" }}
			links: array called "Other Links" { entry called "Other Links" contains
				{
				item: string called "Link"
				}}
			}
	data: note called "Note"
	viewstationary := symbol "CardNote:MoreInfo2:SilverWARE"
	height := value 200
	}

// Suport for links to Notes
extension of "paperroll" of { "paperroll" "Notes" }
	{
	|MoreInfo2:SilverWARE|: entry called "MoreInfo Data" contains 
			{
			nameLinks: array called "Name Links" { entry called "Name Links" contains
				{ item: string called "Name" }}
			links: array called "Other Links" { entry called "Other Links" contains
				{
				item: string called "Link"
				}}
			}
	}

// MoreInfo Call entry
class "Call:MoreInfo2:SilverWARE" called "Call (MI)" of "Calls" contains
	{
	timestamp: datetime called "Date"
	title: string called "Title"
	name: string called "Name"
	phoneNumber: string called "Number"
	notes: note called "History"
	regarding: string called "Regarding"
	toRef: array called "Name Links" { entry called "Name Links" contains
		{ item: string called "Name" }}

	|MoreInfo2:SilverWARE|: entry called "MoreInfo Data" contains 
			{
			priority: number called "Priority"
			links: array called "Other Links" { entry called "Other Links" contains
				{
				item: string called "Link"
				}}
			}
	}

// MoreInfo Log entry
class "LogEntry:MoreInfo2:SilverWARE" called "Log Entry (MI)" of "Calls" contains
	{
	timestamp: datetime called "Date"
	title: string called "Title"
	name: string called "Name"
	phoneNumber: string called "Number"
	notes: note called "History"
	regarding: string called "Regarding"
	toRef: array called "Name Links" { entry called "Name Links" contains
		{ item: string called "Name" }}

	|MoreInfo2:SilverWARE|: entry called "MoreInfo Data" contains 
			{
			links: array called "Other Links" { entry called "Other Links" contains
				{
				item: string called "Link"
				}}
			}
	}

// MoreInfo person extensions to the Name File.
extension of "Person" of { "cardfile" "Names" }
	{
	names: set called "Affiliate" { entry called "Affiliate" contains
			{
			honorific: string called "Honorific"
			first: string called "First Name"
			last: string called "Last Name"
			title: string called "Affiliation"
			phone1: string called "Phone" class "phoneClasses" with options { "titlefromclass" "firstclasswild" }
			phone2: string called "Phone" class "phoneClasses" with options { "titlefromclass" "firstclasswild" }
			email: string called "EMail" class "mailClasses" with options { "titlefromclass" "firstclasswild" }
			bday: date called "Birthday"
			}}
	
	|MoreInfo2:SilverWARE|: entry called "MoreInfo Data" contains 
			{
			urls: array called "urls" { entry called "URLs" contains {
				data: string called "URL" }}
			abbr: string called "Abbreviation"
			accounts: array called "accounts" { entry called "Accounts" contains {
				description: string called "Description"
				|number|: string called "No."
				expDate: string called "Expir. Date"
				PIN: string called "PIN" }}
			custom: array called "custom" { entry called "Custom" contains {
				label: string called "Label"
				data: string called "Data" }}
			department: string called "Department"
			directions: array called "direction" { entry called "Directions" contains {
				title: string called "To"
				data: note called "data" }}
			cardlinks: array called "CardLinks*" { entry called "CardLinks*" contains {
				sortBy: string called "Link To" with options { "readonly" } }} 
			}
	}
	
// MoreInfo company extensions to the Name File.
extension of "Company" of { "cardfile" "Names" }
	{
	|MoreInfo2:SilverWARE|: entry called "MoreInfo Data" contains 
			{
			urls: array called "URLs" { entry called "urls" contains {
				data: string called "URL" }}
			abbr: string called "Abbreviation"
			accounts: array called "Accounts" { entry called "accounts" contains {
				description: string called "Description"
				|number|: string called "No."
				expDate: string called "Expir. Date"
				PIN: string called "PIN" }}
			custom: array called "Custom" { entry called "custom" contains {
				label: string called "Label"
				data: string called "Data" }}
			department: string called "Department"
			directions: array called "Direction" { entry called "directions" contains {
				title: string called "To"
				data: note called "data" }}
			cardlinks: array called "CardLinks*" { entry called "CardLinks*" contains {
				sortBy: string called "Link To" with options { "readonly" } }} 
			}
	}
